package com.horizon.wxapp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.horizon.wxapp.dao.CommentsMapper;
import com.horizon.wxapp.entity.Comments;
import com.horizon.wxapp.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentsServiceImpl implements CommentsService {

    @Resource
    private CommentsMapper commentsMapper;

    @Override
    public List<Comments> listComments() {
        return commentsMapper.selectList(new LambdaQueryWrapper<>());
    }
}
